package com.zpark.service.impl;

import com.zpark.mapper.IRankingMapper;
import com.zpark.pojo.Ranking;
import com.zpark.service.IRankingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author xiaoyu
 * @version 1.0 2022/11/8
 */

@Service
public class RankingServiceImpl implements IRankingService {
    @Autowired
    private IRankingMapper rankingMapper;

    @Override
    public List<Ranking> selectAll() {
        return rankingMapper.selectAll();
    }

    @Override
    public Ranking selectById(Integer id) {
        return rankingMapper.selectByPrimaryKey(id);
    }
}
